package com.iiot.manage.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import java.io.Serializable;

/**
 * <p>
 * 设备报警
 * </p>
 *
 * @author danielzy
 * @since 2019-07-18
 */
public class DeviceWarninglog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 设备编号
     */
    @TableField("deviceCode")
    private Long deviceCode;
    /**
     * 级别
     */
    private Integer level;
    /**
     * 错误代码
     */
    @TableField("faultCode")
    private Long faultCode;
    /**
     * 发生时间
     */
    private Date time;
    /**
     * 删除标识
     */
    private Integer delete;
    /**
     * 当前标识
     */
    private Integer current;
    /**
     * 版本（乐观锁保留字段）
     */
    private Integer version;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(Long deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getFaultCode() {
        return faultCode;
    }

    public void setFaultCode(Long faultCode) {
        this.faultCode = faultCode;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getDelete() {
        return delete;
    }

    public void setDelete(Integer delete) {
        this.delete = delete;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "DeviceWarninglog{" +
        "id=" + id +
        ", deviceCode=" + deviceCode +
        ", level=" + level +
        ", faultCode=" + faultCode +
        ", time=" + time +
        ", delete=" + delete +
        ", current=" + current +
        ", version=" + version +
        "}";
    }
}
